package com.example.service;

import com.example.db.pojo.TbUser;

import java.util.Set;

/**
 * @Author: AlbertHPW
 * @Date: 2025/6/18 23:01
 */
public interface UserService {
    /**
     * 注册用户
     */
    public int registerUser(String registerCode,String code,String nickname,String photo);

    /**
     * 获取用户权限
     */
    public Set<String> searchUserPermissions(int userId);

    /**
     * 小程序登录
     */
    public Integer login(String code);

    public TbUser searchById(int userId);
}
